﻿namespace KongMing.WebTools.Common
{
    public struct SqlType
    {
        public const string Nvarchar = "nvarchar";
        public const string Varchar = "varchar";
        public const string Int = "int";
        public const string Text = "text";
        public const string DateTime = "datetime";
        public const string Decimal = "decimal";

        public static List<string> GetSqlTypes()
        {
            var list = new List<string>();
            foreach (var field in typeof(SqlType).GetFields())
            {
                list.Add(field.GetRawConstantValue()?.ToString() ?? "");
            }
            return list;
        }
    }
}
